home *** CD-ROM | disk | FTP | other *** search
- -- card: 8073 from stack: in.3
- -- bmap block id: 4119
- -- flags: 0000
- -- background id: 6834
- -- name: ChptLstCrd
-
-
- -- part 2 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=26 top=304 right=329 bottom=87
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Quit
- ----- HyperTalk script -----
- on mouseUp
- answer "Perhaps you accidently pressed Quit?" with "Yes I did" or "No I didn't"
- if it is "No I didn't" then domenu "Quit Hypercard"
- end mouseUp
-
-
-
-
- -- part 3 (field)
- -- low flags: 01
- -- high flags: 2007
- -- rect: left=254 top=0 right=342 bottom=512
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: ChptLstFld
- ----- HyperTalk script -----
- on mouseup
- global Chapt
- Put the number of lines in card field "ChptLstFld" into NumChapt
- if NumChapt is 0 then exit mouseup
- set locktext of card field "ChptLstFld" to false
- get the clickloc
- delete item 1 of it
- click at 493,it
- click at 260,it with shiftkey
- set locktext of card field "ChptLstFld" to true
- repeat with x = 1 to NumChapt
- if the selection is line x of card field "ChptLstFld" then exit repeat
- end repeat
- put line x of card field "ChptOrdrFld" into ChaptNum
- put Bs10To26(ChaptNum) into Chapt
- visual effect zoom open slowly
- go to card Chapt
- end mouseup
-
-
-
- -- part 8 (field)
- -- low flags: 81
- -- high flags: 2004
- -- rect: left=156 top=120 right=205 bottom=356
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 3
- -- text size: 12
- -- style flags: 19200
- -- line height: 16
- -- part name: No Match
- ----- HyperTalk script -----
- on mouseup
- hide card field "No Match"
- end mouseup
-
-
- -- part 28 (field)
- -- low flags: 81
- -- high flags: 0007
- -- rect: left=81 top=99 right=214 bottom=144
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: ChptOrdrFld
-
-
- -- part 33 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=96 top=266 right=291 bottom=157
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Contents
- ----- HyperTalk script -----
- on mouseup
- global Chapt
- repeat while true
- go to card "ChptLstCrd"
- put number of lines in card field "ChptLstFld" + 1 into ChaptNum
- put "Name Chapter" && ChaptNum into Prompt
- ask prompt
- if it is empty then exit mouseup
- put it into UsrChptNam
- put 1 into x
- repeat while true
- put "Name Topic" && x && "of Chapter" && ChaptNum into prompt
- ask prompt
- if it is empty then
- go to card "ChptLstCrd"
- if x > 1 then exit repeat
- if x is 1 then exit mouseup
- end if
- put it into UsrTpcNam
- if x is 1 then
- put UsrChptNam & return after card field "ChptLstFld"
- put ChaptNum & return after card field "ChptOrdrFld"
- put Bs10To26(ChaptNum) into Chapt
- set cursor to 4
- set lockscreen to true
- put PasteAtPrev("TpcLstTmplt") into dummy
- set lockscreen to false
- set the name of this card to Chapt
- set lockscreen to false
- end if
- put UsrTpcNam & return after field "TpcLstFld"
- set lockscreen to true
- set cursor to 4
- put the number of lines in field "TpcLstFld" into TopicNum
- put TopicNum & return after field "TpcOrdrFld"
- put PasteAtPrev("NtTmplt") into dummy
- put Chapt & TopicNum into NtCrdNam
- set the name of this card to NtCrdNam
- put UsrTpcNam into field "HeaderFld"
- go to card Chapt
- flash 2
- add 1 to x
- set lockscreen to false
- end repeat
- end repeat
- end mouseup
-
-
- -- part 34 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=166 top=266 right=291 bottom=227
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Delete
- ----- HyperTalk script -----
- on mouseUp
- put number of lines in card field "ChptLstFld" into LstChptNum
- if LstChptNum is 0 then exit mouseup
- ask "Delete which chapter?"
- if it is empty then exit mouseup
- put it into DelChoice
- repeat with LnClicked = 1 to LstChptNum
- if DelChoice is line LnClicked of card field "ChptLstFld" then exit repeat
- if LnClicked is LstChptNum then
- show card field "No Match"
- exit mouseup
- end if
- end repeat
- set cursor to 4
- set lockscreen to true
- put line LnClicked of card field "ChptOrdrFld" into ChptOrdrNum
- put Bs10To26(ChptOrdrNum) into ChptName
- if ChptOrdrNum is LstChptNum then
- delete line LnClicked of card field "ChptOrdrFld"
- delete line LnClicked of card field "ChptLstFld"
- put DelCards(ChptName) into dummy
- else
- repeat with x = 1 to LstChptNum
- if line x of card field "ChptOrdrFld" is LstChptNum then exit repeat
- end repeat
- put ChptOrdrNum into line x of card field "ChptOrdrFld"
- delete line LnClicked of card field "ChptLstFld"
- delete line LnClicked of card field "ChptOrdrFld"
- put DelCards(ChptName) into dummy
- put Bs10To26(LstChptNum) into LstChapName
- go to card LstChapName
- set name of this card to ChptName
- put number of lines in field "TpcLstFld" into LstTpcNum
- go to card LstChapName & 1
- repeat with x = 1 to LstTpcNum
- if short name of this card is "@" then
- --
- else
- set name of this card to ChptName & x
- end if
- go to next card
- end repeat
- end if
- go to card "ChptLstCrd"
- set lockscreen to false
- flash 2
- end mouseUp
-
-
-
- -- part 35 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=96 top=304 right=329 bottom=157
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Rename
- ----- HyperTalk script -----
- on mouseUp
- Put number of lines in card field "ChptLstFld" into NumChapt
- if NumChapt is 0 then exit mouseup
- ask "Rename what Chapter?"
- if it is empty then exit mouseup
- put it into ChToRenam
- repeat with LnNum = 1 to NumChapt
- if ChToRenam is line LnNum of card field "ChptLstFld"
- then exit repeat
- if LnNum is NumChapt then
- show card field "No Match"
- exit mouseup
- end if
- end repeat
- put "Enter New Title for Chapter" into prompt
- ask prompt
- if it is empty then
- exit mouseup
- else
- put it into NewTitle
- put NewTitle into line LnNum of card field "ChptLstFld"
- end if
- flash 2
- end mouseUp
-
-
-
- -- part 36 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=166 top=304 right=329 bottom=227
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Insert
- ----- HyperTalk script -----
- on mouseUp
- global Chapt
- put number of lines in card field "ChptLstFld" into TtlNumChpts
- if TtlNumChpts is 0 then exit mouseup
- put "Name for inserted Chapter?" into prompt
- ask prompt
- if it is empty then exit mouseup
- put it into InsertedName
- put "Insert after what chapter? [none]" into prompt
- ask prompt
- if it is empty then exit mouseup
- put it into AfterName
-
- if AfterName is "none" then
- put 1 into ChptInsrtNum
- else
- repeat with x = 1 to TtlNumChpts
- if line x of card field "ChptLstFld" is AfterName then exit repeat
- if x is TtlNumChpts then
- show card field "No Match"
- exit mouseup
- end if
- end repeat
- put x + 1 into ChptInsrtNum
- end if
-
- put 1 into x
- repeat while true
- put "Name Topic" && x && "of Chapter" && ChptInsrtNum into prompt
- ask prompt
- if it is empty then
- go to card "ChptLstCrd"
- exit mouseup
- end if
- put it into UsrTpcNam
-
- if x is 1 then
- put InsertedName & return before line ChptInsrtNum of card field "ChptLstFld"
- put TtlNumChpts + 1 into LstChptNum
- put LstChptNum & return before line ChptInsrtNum of card field "ChptOrdrFld"
- put Bs10To26(LstChptNum) into Chapt
- set cursor to 4
- set lockscreen to true
- put PasteAtPrev("TpcLstTmplt") into dummy
- set lockscreen to false
- set the name of this card to Chapt
- end if
-
- put UsrTpcNam & return after field "TpcLstFld"
- put the number of words in field "TpcLstFld" into TopicNum
- put TopicNum & return after field "TpcOrdrFld"
- set cursor to 4
- set lockscreen to true
- put PasteAtPrev("NtTmplt") into dummy
- put Chapt & TopicNum into NtCrdNam
- set the name of this card to NtCrdNam
- put UsrTpcNam into field "HeaderFld"
- go to card Chapt
- set lockscreen to false
- add 1 to x
- flash 2
- end repeat
- end mouseUp
-
-
-
- -- part 37 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=26 top=266 right=291 bottom=87
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Remove All
- ----- HyperTalk script -----
- on mouseUp
- answer "Delete table of contents & all graphics/text?" with "OK" or "Cancel"
- if it is empty then exit mouseup
- if it is "OK" then
- set cursor to 4
- set lockscreen to true
- go to first card
- put false into essential
- repeat for number of cards
- get short name of this card
- if it is "ChptLstCrd" or it is "TpcLstTmplt" or it is "NtTmplt" or it is "Welcome" then
- put true into essential
- go to next card
- end if
- if not essential then domenu "delete card"
- put false into essential
- end repeat
- if the freeSize of this stack is not 0 then
- if the diskSpace > the size of this stack
- then domenu "Compact Stack"
- end if
- go to card "ChptLstCrd"
- put empty into card field "ChptLstFld"
- put empty into card field "ChptOrdrFld"
- set lockscreen to false
- hide msg
- flash 2
- end if
- end mouseUp
-
-
-
- -- part 44 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=217 top=227 right=251 bottom=246
- -- title width / last selected line: 0
- -- icon id / first selected line: 19678 / 19678
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: New Button
- ----- HyperTalk script -----
- on mouseUp
- show card field "endsignal"
- end mouseUp
-
-
-
- -- part 45 (field)
- -- low flags: 81
- -- high flags: 2004
- -- rect: left=58 top=59 right=160 bottom=456
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: endsignal
- ----- HyperTalk script -----
- on mouseup
- hide card field "endsignal"
- end mouseup
-
-
- -- part contents for card part 8
- ----- text -----
-
-
- No Match Found!
-
- -- part contents for card part 45
- ----- text -----
-
-
- Some routines take considerable time to execute.
- When you see the flashing screen it is safe to continue!
-
- -- part contents for card part 3
- ----- text -----
- Purpose of this stack...
- Changes since Summarizer 1.2
- Shareware Notice
-
-
- -- part contents for card part 28
- ----- text -----
- 1
- 2
- 3
-